package com.lionel.test.design;
public class FutureClient {
	public Data request(final String queryStr) {
		final FutureData futureData = new FutureData();
		new Thread(new Runnable() {
			@Override
			public void run() {
				RealData realData = new RealData(queryStr);
				futureData.setRealData(realData);
			}
		}).start();
		return  futureData;
	}

}
